#!/usr/bin/python
# -*- coding: utf8 -*-

# 委托 - 夜航手册 - lv60
import sys

import pydirectinput as pyin

import auto_gaming_utils as utils
from commission_base import CommissionBase

def go_farm_place(farm_round):
    pyin.keyDown('w')
    pyin.keyDown('shiftleft')
    utils.precise_sleep(1)
    pyin.keyUp('shiftleft')
    utils.precise_sleep(3)
    pyin.keyUp('w')

if __name__ == "__main__":

    use_double_book = False
    args = sys.argv[1:]
    if len(sys.argv) > 1 and sys.argv[1] == 'double':
        use_double_book = True

    commission = CommissionBase(use_double_book)
    commission.start_farming(go_farm_place)

